<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model\Attraction_info;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property string $title 标题
 * @property string $intro 信息内容
 * @property int $group 信息分组1活动2优惠3交通
 * @property int $type_id 类型id
 * @property int $spot_id 点位id
 * @property int $cover_id 封面id
 * @property int $status 是否显示状态1正常2停止3时间字段决定,优先级高于时间控制
 * @property int $sort 排序
 * @property string $start_time 开始时间
 * @property string $end_time 结束时间
 * @property array $extension 扩展信息
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class AttractionInfo extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction_info';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'title', 'intro', 'group', 'type_id', 'spot_id', 'cover_id', 'status', 'sort', 'start_time', 'end_time', 'extension', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'group' => 'integer', 'type_id' => 'integer', 'spot_id' => 'integer', 'cover_id' => 'string', 'status' => 'integer', 'sort' => 'integer', 'start_time' => 'datetime', 'end_time' => 'datetime', 'extension' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
